<?php 
$width = $this->width;
$height = $this->height;
$htmlOptions = array();
if (!empty($width) && $width > 0)
    $htmlOptions['width'] = $width;
if (!empty($height) && $height > 0)
    $htmlOptions['height'] = $height;
echo CHtml::image(Yii::app()->request->getHostInfo().'/'.$model->source, $model->alt, $htmlOptions);?>
<?php echo YII_DEBUG ? '<!-- '.__FILE__.' -->' : '';?>